package com.wulis.provider.authority.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wulis.common.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 权限管理:账号-角色表
 *
 * @author WuliBao
 * @date 2020-04-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("authority_account_role")
@ApiModel(value = "AccountRole对象", description = "权限管理:账号-角色表")
public class AccountRole extends BaseEntity<AccountRole> {
    
    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "账号ID")
    @TableField("account_id")
    private Long accountId;
    
    @ApiModelProperty(value = "角色ID")
    @TableField("role_id")
    private Long roleId;
    
}
